<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>message</title>
    <link rel="stylesheet" href="css/show.css">
    <script>
        function check(){
            var nmsg = document.getElementById("nmsg").value;
            if (nmsg == ""){
                alert("欸？说些什么吧！");
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
	
	<%--<% if(session.getAttribute("USER_SESSION")==null){--%>
		<%--response.sendRedirect("login.jsp");--%>
	<%--}%>--%>
	
	<jsp:include page="top.jsp"></jsp:include>

    <div class="message">
        <div class="msg">
            <p>发送给：${receive.unikename }</p>
            <form action="sendNews?&rid=${receive.uid }&lid=${lid}" method="POST" onsubmit="return check()">
                <textarea id="nmsg" name="nmsg" cols="80" rows="10" placeholder="正文~" required="required"></textarea>
                <button type="submit">发&nbsp;&nbsp;送</button>
            </form>
        </div>
    </div>


</body>
</html>